package com.chanzany.adapter.classBased;

//适配器类
public class VoltageAdapter extends Voltage220V implements IVoltage5V {
    @Override
    public int output5V() {
        //获取220V电压
        int src = output220V();
        //将220V降压到5V并返回
        int dst = src / 44;
        return dst;
    }
}
